Raphael(function() {

	var out = $("output");

	var cp = Raphael.colorpicker(40, 20, 300, "#eee", "pick-color");

	var clr = Raphael.color("#eee");

	var onchange = function(item) {
		return function(clr) {
			clr = Raphael.color(clr);
			out.value = clr.hex;
			col = clr.hex;
		};
	};

	cp.onchange = onchange(cp);

});